package br.edu.ufcg.greengrid.event.reader;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import br.edu.ufcg.greengrid.event.Event;
import br.edu.ufcg.greengrid.event.MachineAvailabilityEvent;

public class MachineAvailabilityEventReaderTest {

	@Test
	public void testGetEvent() {

		MachineAvailabilityEventReader reader = new MachineAvailabilityEventReader();
		
		MachineAvailabilityEvent expected = new MachineAvailabilityEvent("m1", 1, 10);
		MachineAvailabilityEvent actual = reader.getEvent("m1" + Event.SEPARATOR + "1" + Event.SEPARATOR + "10");
		assertEquals(expected, actual);

	}

}
